package com.lcredu.seckill.util;

import org.junit.jupiter.api.Test;

import java.util.UUID;

/**
 * @author 黎长容
 * @date 2025-08-24 18:40
 */
//生成票据
public class UUIDUtil {
    public static String getUUID(){
        //460e03e0-aa02-4c34-a227-ac6b0c2ffca5
        //b31f9771f4a747b3892a1079a2acf3c4
        String uuid = UUID.randomUUID().toString().replace("-","");
        return uuid;
    }
    
    @Test
    public void test(){
        System.out.println(UUIDUtil.getUUID());
    }
}
